//
//  ServiceRequest.m
//  gongwei-ios
//
//  Created by xiaoxiachuanqi on 2020/1/23.
//  Copyright © 2020 gongwei-mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ServiceRequest.h"
#import "../message/api/MessageType.h"
#import "../message/api/MessageResponseType.h"

@implementation ServiceRequest

-(MessageType)getContentType {
    return MT_SERVICE_REQUEST;
}

-(MessageResponseType)getResponseType {
    return MRT_ONE;
}

-(NSMutableDictionary *)parseToDictionary: (BOOL) withTag {
    NSMutableDictionary* dictionary = [super parseToDictionary: withTag];
    
    if (withTag)
    {
        [dictionary setObject:@"Service" forKey:@"__type"];
    }
    return dictionary;
}

@end
